package com.gowiny.ddns;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.gowiny.ddns.service.DdnsService;

@SpringBootApplication
public class GowinyDdnsApplication implements CommandLineRunner{

	@Autowired
	private DdnsService ddnsService;
	public static void main(String[] args) {
        SpringApplication.run(GowinyDdnsApplication.class, args);
    }

	@Override
	public void run(String... args) throws Exception {
		ddnsService.startup(args);
	}
	
}
